-- GENERATED SPELL FOR [Bladespire Cook] --


function spell0_20334(pUnit, Event) --@Bloodmaul Intoxication,n/a--
pUnit:FullCastSpellOnTarget(35240,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20334', 25000, 1)
end

function spell1_20334(pUnit, Event) --@Meat Slap,n/a--
pUnit:FullCastSpellOnTarget(37597,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20334', 660, 1)
end

function spell2_20334(pUnit, Event) --@Tenderize,n/a--
pUnit:FullCastSpellOnTarget(37596,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20334', 30336, 1)
end

function Sorts_20334(pUnit, Event)
local choix_sorts_20334 = math.random(0, 2)
if choix_sorts_20334 == 0 then
pUnit:RegisterEvent('spell0_20334', 1, 1)
end
if choix_sorts_20334 == 1 then
pUnit:RegisterEvent('spell1_20334', 1, 1)
end
if choix_sorts_20334 == 2 then
pUnit:RegisterEvent('spell2_20334', 1, 1)
end
end

function mob20334_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20334', math.random(1500, 3000), 1)
end

function mob20334_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20334_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20334_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20334, 1, 'mob20334_Action')
RegisterUnitEvent(20334, 2, 'mob20334_Leave')
RegisterUnitEvent(20334, 3, 'mob20334_Kill')
RegisterUnitEvent(20334, 4, 'mob20334_Die')
